#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
const int N=1e6+3;
mt19937 rd(time(0));
int p[N];
int Ran(int l,int r){return l+rd()%(r-l+1);}
int main()
{
	freopen("stamp.in","w",stdout);
	int n=2500,m=2400;cout<<n<<" "<<m<<" "<<Ran(1,n)<<endl;
	cout<<Ran(1,n)<<" "<<Ran(1,m)<<" "<<Ran(1,n)<<" "<<Ran(1,m)<<endl;
	for(int i=1;i<=n;i++,cout<<endl)for(int j=1;j<=m;j++)cout<<(rd()%3!=0?'#':'.');
}
